Cloud Native DevOps with Kubernetes by John Arundel

Cloud Native DevOps with Kubernetes by John Arundel

Author:John Arundel
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2018-08-12T16:00:00+00:00


In other words, labels exist to tag resources with information that’s meaningful to us, but they don’t mean anything to Kubernetes. For example, it’s common to label Pods with the application they belong to:

apiVersion: v1 kind: Pod metadata: labels: app: demo

Now, by itself, this label has no effect. It’s still useful as documentation: someone can look at this Pod and see what application it’s running. But the real power of a label comes when we use it with a selector.

Selectors

A selector is an expression that matches a label (or set of labels). It’s a way of specifying a group of resources by their labels. For example, a Service resource has a selector that identifies the Pods it will send requests to. Remember our demo Service from “Service Resources”?



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.